package org.rabbitmq.topic.consumer.consumer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
*@author LSY
*Time: 2018年12月7日下午2:06:00
*
*
*/
@Component
@RabbitListener(queues = "register.account")
public class CreateAccountConsumer {

	 Logger logger = LoggerFactory.getLogger(CreateAccountConsumer.class);
	 
	 @RabbitHandler
	 public void handler(String userId) {
		 logger.info("用户：{}，注册成功，自动创建用户信息：", userId);
	 }
}
